package com.hpc.Service;

import com.hpc.VO.msgVo;
import entity.message;
import entity.user;

import java.util.List;
import java.util.Map;

public interface userService {
    public user login(String username, String password);
    public List<user> getfollowers(List<String> userIds);
    public user getUserInfoByArticleId(String articleId);
//    public List<comment> getCommentsOfArticle(@Param("articleId") String articleId);
    public List<user> getUserInfoOfComment(List<String> userIds);
    public int modifyUserInfo(user user);
    public user getUserInfoBySerial(String userId);
    public Map<String,String> personalHomePageRelated(String userId,String userIdIntoken);
    public int changeHeadSculptureUrl(String url,String userid);
    public List<msgVo> msgsOfUser(String userid);
    public int register(user user);
    public int addMessage(String userId,String message);
    public List<message> allMessages();
}
